#include"bar.h"

const char* label = "|/-\\";
// 进度条相关函数实现
void bar_version1(int rate)
{
	static char bar[BAR_SIZE] = {0};
 	if(rate <= 100 && rate >= 0)
	{
		printf("资源加载中......[%-100s][%d%%][%c]\r", bar, rate, label[rate % 4]);
		fflush(stdout);
		bar[rate] = STYLE;
		// 1
	}
}

